package me.ingxin.android.testlibrary.handler

import android.content.Context
import android.widget.Toast
import me.ingxin.android.router.annotaions.Route
import me.ingxin.android.router.route.Request
import me.ingxin.android.router.route.Result
import me.ingxin.android.router.route.RouteHandler

/**
 * Created by ingxin on 2022/4/29
 */
@Route(path = "/lib/handler1")
class Lib1Handler : RouteHandler() {
    override fun handle(context: Context, request: Request) {
        Toast.makeText(context, "正在执行Lib1Handler", Toast.LENGTH_SHORT).show()
        setResult(Result())
    }
}